package com.hsq.ndmall.wx;

import com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, IdentifierGeneratorAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.hsq.ndmall.wx.feign") /*启动feign 去掉restTemplate远程调用*/
@EnableCaching  // redis 缓存
@ComponentScan({"com.hsq.ndmall.common","com.hsq.ndmall.wx"}) // 将redis扫描进来
public class NdmallWxApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(NdmallWxApiApplication.class, args);
    }

}
